package com.itheima.homework;

import java.util.Scanner;

public class Test02 {
    public static void main(String[] args) {
        //创建Scanner变量
        Scanner sc = new Scanner(System.in);
        //用户提示
        System.out.println("请输入月份数");
        //使用变量接收输入数据
        int month = sc.nextInt();
        switch(month){
            default:
            case 4:
            case 5:
            case 6:
                System.out.println(month+"月是春天");
                break;
            case 7:
            case 8:
            case 9:
                System.out.println(month+"月是夏天");
                break;
            case 10:
            case 11:
            case 12:
                System.out.println(month+"月是秋天");
                break;
            case 1:
            case 2:
            case 3:
                System.out.println(month+"月是冬天");
                break;
        }
    }
}
